Optimal. Leaf size=497 \[ \frac {2 \left (1+\sqrt {3}\right ) \sqrt [3]{b} x \left (a+b x^3\right )}{a \left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right ) \sqrt {a x+b x^4}}-\frac {2 \sqrt {a x+b x^4}}{a x}-\frac {2 \sqrt [4]{3} \sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} E\left (\cos ^{-1}\left (\frac {\sqrt [3]{a}+\left (1-\sqrt {3}\right ) \sqrt [3]{b} x}{\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x}\right )|\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{a^{2/3} \sqrt {\frac {\sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} \sqrt {a x+b x^4}}-\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} F\left (\cos ^{-1}\left (\frac {\sqrt [3]{a}+\left (1-\sqrt {3}\right ) \sqrt [3]{b} x}{\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x}\right )|\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{\sqrt [4]{3} a^{2/3} \sqrt {\frac {\sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} \sqrt {a x+b x^4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.36, antiderivative size = 497, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.353, Rules used = {2050, 2057,
335, 314, 231, 1895} \begin {gather*} -\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} F\left (\text {ArcCos}\left (\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{b} x+\sqrt [3]{a}}{\left (1+\sqrt {3}\right ) \sqrt [3]{b} x+\sqrt [3]{a}}\right )|\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{\sqrt [4]{3} a^{2/3} \sqrt {\frac {\sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} \sqrt {a x+b x^4}}-\frac {2 \sqrt [4]{3} \sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} E\left (\text {ArcCos}\left (\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{b} x+\sqrt [3]{a}}{\left (1+\sqrt {3}\right ) \sqrt [3]{b} x+\sqrt [3]{a}}\right )|\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{a^{2/3} \sqrt {\frac {\sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} \sqrt {a x+b x^4}}-\frac {2 \sqrt {a x+b x^4}}{a x}+\frac {2 \left (1+\sqrt {3}\right ) \sqrt [3]{b} x \left (a+b x^3\right )}{a \left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right ) \sqrt {a x+b x^4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 231
Rule 314
Rule 335
Rule 1895
Rule 2050
Rule 2057
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt {a x+b x^4}} \, dx &=-\frac {2 \sqrt {a x+b x^4}}{a x}+\frac {(2 b) \int \frac {x^2}{\sqrt {a x+b x^4}} \, dx}{a}\\ &=-\frac {2 \sqrt {a x+b x^4}}{a x}+\frac {\left (2 b \sqrt {x} \sqrt {a+b x^3}\right ) \int \frac {x^{3/2}}{\sqrt {a+b x^3}} \, dx}{a \sqrt {a x+b x^4}}\\ &=-\frac {2 \sqrt {a x+b x^4}}{a x}+\frac {\left (4 b \sqrt {x} \sqrt {a+b x^3}\right ) \text {Subst}\left (\int \frac {x^4}{\sqrt {a+b x^6}} \, dx,x,\sqrt {x}\right )}{a \sqrt {a x+b x^4}}\\ &=-\frac {2 \sqrt {a x+b x^4}}{a x}-\frac {\left (2 \sqrt [3]{b} \sqrt {x} \sqrt {a+b x^3}\right ) \text {Subst}\left (\int \frac {\left (-1+\sqrt {3}\right ) a^{2/3}-2 b^{2/3} x^4}{\sqrt {a+b x^6}} \, dx,x,\sqrt {x}\right )}{a \sqrt {a x+b x^4}}-\frac {\left (2 \left (1-\sqrt {3}\right ) \sqrt [3]{b} \sqrt {x} \sqrt {a+b x^3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^6}} \, dx,x,\sqrt {x}\right )}{\sqrt [3]{a} \sqrt {a x+b x^4}}\\ &=\frac {2 \left (1+\sqrt {3}\right ) \sqrt [3]{b} x \left (a+b x^3\right )}{a \left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right ) \sqrt {a x+b x^4}}-\frac {2 \sqrt {a x+b x^4}}{a x}-\frac {2 \sqrt [4]{3} \sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} E\left (\cos ^{-1}\left (\frac {\sqrt [3]{a}+\left (1-\sqrt {3}\right ) \sqrt [3]{b} x}{\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x}\right )|\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{a^{2/3} \sqrt {\frac {\sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} \sqrt {a x+b x^4}}-\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} F\left (\cos ^{-1}\left (\frac {\sqrt [3]{a}+\left (1-\sqrt {3}\right ) \sqrt [3]{b} x}{\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x}\right )|\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{\sqrt [4]{3} a^{2/3} \sqrt {\frac {\sqrt [3]{b} x \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\left (\sqrt [3]{a}+\left (1+\sqrt {3}\right ) \sqrt [3]{b} x\right )^2}} \sqrt {a x+b x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 10.01, size = 48, normalized size = 0.10 \begin {gather*} -\frac {2 \sqrt {1+\frac {b x^3}{a}} \, _2F_1\left (-\frac {1}{6},\frac {1}{2};\frac {5}{6};-\frac {b x^3}{a}\right )}{\sqrt {x \left (a+b x^3\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.40, size = 1083, normalized size = 2.18
method | result | size |
default | \(\text {Expression too large to display}\) | \(1083\) |
risch | \(\text {Expression too large to display}\) | \(1083\) |
elliptic | \(\text {Expression too large to display}\) | \(1083\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.45, size = 24, normalized size = 0.05 \begin {gather*} \frac {2 \, {\rm weierstrassZeta}\left (0, -\frac {4 \, b}{a}, {\rm weierstrassPInverse}\left (0, -\frac {4 \, b}{a}, \frac {1}{x}\right )\right )}{\sqrt {a}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x \sqrt {x \left (a + b x^{3}\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{x\,\sqrt {b\,x^4+a\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________